import request from '@/utils/request'

/* 列表分页*/
export function selectReceiptPage(data) {
  return request({
    url: '/financial/receipt/selectReceiptPage',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveReceipt(data) {
  return request({
    url: '/financial/receipt/saveReceipt',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveBatchReceipt(data) {
  return request({
    url: '/financial/receipt/saveBatchReceipt',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateReceiptById(data) {
  return request({
    url: '/financial/receipt/updateReceiptById',
    method: 'post',
    data: data
  })
}

export function selectReceiptById(data) {
  return request({
    url: '/financial/receipt/selectReceiptById/' + data,
    method: 'post'
  })
}

/* 删除*/
export function deleteReceipt(data) {
  return request({
    url: '/financial/receipt/deleteReceipt',
    method: 'post',
    data: data
  })
}

/* 查询收款方式的数量*/
export function selectReceiptMethodCount(data) {
  return request({
    url: '/financial/receipt/selectReceiptMethodCount',
    method: 'post',
    data: data
  })
}
